ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Pretty YAML

by aukaost ALL Trending

Sublime Text 2/3 plugin that allows to format a YAML file

Details

  • 0.2.0
  • github.​com
  • 4 years ago
  • 3 hours ago
  • 11 years ago

Installs

  • Total 78K
  • Win 25K
  • Mac 37K
  • Linux 17K
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 5 8 8 1 1 4 4 5 6 3 2 8 5 4 7 2 2 5 1 10 4 10 4 9 1 0 7 9 3 4 6 2 2 3 7 5 4 4 2 1 1 4 5 13 10 1
Mac 9 11 5 2 4 7 1 5 5 5 3 2 7 4 5 8 7 6 6 6 9 6 5 4 4 3 4 6 7 13 2 2 2 7 10 13 8 8 2 2 10 7 6 8 8 3
Linux 1 6 4 0 3 4 2 3 2 2 0 0 2 4 3 2 3 1 1 3 1 5 1 1 0 1 1 4 0 4 3 2 0 2 2 1 3 0 3 2 1 2 1 1 1 0

Readme

Source
raw.​githubusercontent.​com

Pretty YAML

Prettify YAML plugin for Sublime Text 2 & 3 (Based on Pretty JSON)

Installation

Install this sublime text package via Package Control

Usage To prettify YAML, make selection of YAML and press keys:

  • Linux: ctrl+alt+y

  • Windows: ctrl+alt+y

  • OS X: cmd+ctrl+y

If selection is empty and configuration entry use_entire_file_if_no_selection is true, tries to prettify whole file.

If YAML is not valid it will be displayed in status bar of sublime.

Default configuration

This plugin uses PyYAML to process YAML files. You can specify the arguments for the Dumper in the plugin's preferences.

Thanks

License

  • View LICENSE files in plugin root and yaml/ subfolders (both MIT)